import http from "../utils/http/http.js";

const login = (data) => {
    return http.post("/api/user/login", data);
};
const register = (data) => {
    return http.post("/api/user/register", data);
};
const getUserById = (id) => {
    return http.get(`/api/user/${id}`);
};

export default {
    login,
    getUserById,
    register,
};